package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;

@Mapper
public interface UserMapper {
     @Select("select *from user where openid=#{openid}")
    User getByOpenid(String openid);

    void insert(User user);

    Integer countBymap(HashMap<String, Object> map);
}
